package com.easyban.config;

import com.easyban.utils.RedisUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
@Component
public class intin implements ApplicationRunner {
    private static final Logger logger = LoggerFactory.getLogger(intin.class);

    @Resource
    private RedisUtils redisUtils;
    //系统设置缓存
    @Override
    public void run(ApplicationArguments args) throws Exception {
        redisUtils.getSysSettingsDto();
        logger.info("缓存成功");
    }
}
